package com.yksj.healthtalk.ui.problemOfWall;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.yksj.healthtalk.comm.BaseFragmentActivity;
import com.yksj.healthtalk.ui.R;

public class ProblemMainActivity extends BaseFragmentActivity implements OnClickListener{
	
	private Button mTitleBack;//返回
	private TextView mTitleName;//标题
	private Button mTitleRight;//标题右边
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.problem_customer_main);
		
		initWidget();
		initClickListener();
		initData();
	}
	
	private void initClickListener() {
		// TODO Auto-generated method stub
		mTitleBack.setOnClickListener(this);
		mTitleRight.setOnClickListener(this);
		
		findViewById(R.id.sugery).setOnClickListener(this);//外科
		findViewById(R.id.obstetrics).setOnClickListener(this);//产科
		findViewById(R.id.psychology).setOnClickListener(this);//心理
		findViewById(R.id.orthopedics).setOnClickListener(this);//骨科
		findViewById(R.id.andrology).setOnClickListener(this);//男科
		findViewById(R.id.gynaecology).setOnClickListener(this);//妇科
		findViewById(R.id.internal).setOnClickListener(this);//内科
		findViewById(R.id.dermatology).setOnClickListener(this);//皮肤科
		findViewById(R.id.medicine).setOnClickListener(this);//	中医科
		findViewById(R.id.problem_endocrinology).setOnClickListener(this);//内分泌科 
		findViewById(R.id.cardiovascular).setOnClickListener(this);//心血管科
		findViewById(R.id.nutritional).setOnClickListener(this);//	营养科
		
		}
	
	private void initData() {
		// TODO Auto-generated method stub
		mTitleName.setText("问题墙");
	}

	private void initWidget() {
		// TODO Auto-generated method stub
		mTitleBack = (Button) findViewById(R.id.title_back);
		mTitleName = (TextView)findViewById(R.id.title_lable);
		mTitleRight = (Button)findViewById(R.id.title_right);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.title_back:
			finish();
			break;
		case R.id.title_right:
			//我的问题
			Intent intent = new Intent(this,CustomerselfProblemActivity.class);
			startActivity(intent);
			break;
		default:
			Intent intent2 = new Intent(this,CustomerProblemMainActivity.class);
			startActivity(intent2);
			break;
		}
	}

}
